package cn.openea.perpartner.meily.web.controller;

import cn.openea.perpartner.common.core.web.domain.AjaxResult;
import cn.openea.perpartner.meily.web.entity.vo.GoodsBusinessVo;
import cn.openea.perpartner.meily.web.service.IGoodsBusinessService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


/**
 * @author ysk
 * @email zane_ysk@qq.com
 * @date 2023-03-27 18:00:21
 */
@RestController
@RequestMapping("/goods/business")
public class GoodsBusinessController {
    @Resource
    private IGoodsBusinessService goodsBusinessService;

    @ApiOperation(value = "获取商品详情")
    @PostMapping("/info")
    public AjaxResult getAllList(@RequestBody GoodsBusinessVo vo) {
        return AjaxResult.success(this.goodsBusinessService.getGoodsInfo(vo));
    }

}
